var config = {
    getConf: function(t) {
        var n, o = wx.getStorageSync("appConfig");
        for (n in o) if (o[n].code == t) return o[n].value;
    },
    init: function(n) {
        var o = getApp();
        o.globalData.setting ? "function" == typeof n && n() : o.util.request({
            url: "entry/wxapp/Setting",
            showLoading: !1,
            success: function(t) {
                o.globalData.setting = t.data.data, "function" == typeof n && n();
            }
        });
    }
};

module.exports = config;